#include<iostream>
using namespace std;
int main()
{
    const char* Months[]={
        "January","February","March","April","May",
        "June","July","Auguest","September","October","November","December"
    };
    //非常朴实无华好用简单的常量数组指针
    int time;
    cin>>time;
    while(time--)
    {
        int month;
        cin>>month;
        month--;
        //因为数组下标比正常月份-1，所以这里可以优先--，也可以在cout那里再-1
        if(month>=0 && month<12)
        {
            cout<<*(Months+month)<<endl;
            //一定要加上Months,这是个开头，就是数组[0]的地址
            //再加你要的是第几个
        }
        else
        {
            cout<<"error"<<endl;
        }
    }
}